Fix #477175, reported by Juri Pakaste.
authorKristian Rietveld <kris@imendio.com>
Thu, 10 Jan 2008 09:24:11 +0000 (09:24 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Thu, 10 Jan 2008 09:24:11 +0000 (09:24 +0000)
commit244380529abd9222a44164b162cda3b4181f9cb6
treea86597c240c10c6ccef5a198f9d6da3961806ee9
parent9c7a2c321fd5c7cea0564442cbc96812b47dd759
Fix #477175, reported by Juri Pakaste.

2008-01-10  Kristian Rietveld  <kris@imendio.com>

Fix #477175, reported by Juri Pakaste.

* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): do not set
tree_view->priv->dy here directly, just calculate the new value
and set it on the adjustment,
(gtk_tree_view_adjustment_changed): add guards to not call
gtk_tree_view_dy_to_top_row() if we are currently in
gtk_tree_view_top_row_to_dy(),
(gtk_tree_view_put): fix coordinate annotation: these are bin_window
coordinates, not tree coordinates,
(gtk_tree_view_real_start_editing): add cast.

* gtk/tests/treeview-scrolling.c: add an assertion for checking the
position of the editable in the "create new row and start editing"
tests.

svn path=/trunk/; revision=19331
ChangeLog
gtk/gtktreeprivate.h
gtk/gtktreeview.c
gtk/tests/treeview-scrolling.c